$def with(lst, pager, msg)
$:render.admin.header()

<div class="itemtitle">
    <h3>酒店蜘蛛</h3>
    <ul class="tab1">
        <li class="current"><a href="javascript:;"><span>管理</span></a></li>
        <li><a href="/admin/spider/hotel/add"><span>添加</span></a></li>
    </ul>
</div>
<table id="tips" class="tb tb2 ">
    <tr>
        <th class="partition">技巧提示</th>
    </tr>
    <tr>
        <td class="tipsblock">
            <ul id="tipslis">
                <li>蜘蛛规则配置要求配置人对蜘蛛有相当的了解才行，因此在不了解蜘蛛运行方式的时候，请不要随意修改规则。</li>
            </ul>
        </td>
    </tr>
</table>
$if lst and lst.totalrecords > 0:
    <form method="post" onsubmit="return confirm('是否删除？');">
    <div class="msg">
        $if msg:
            $:msg
    </div>
    <table class="tb tb2">
        <tr>
            <th class="partition" colspan="10">共有<strong> $lst.totalrecords </strong>条配置</th>
        </tr>
        <tr class="header">
            <th width="150">蜘蛛</th>
            <th>URL_REGEX</th>
            <th width="40">&nbsp;</th>
            <th width="40">&nbsp;</th>
        </tr>
        $for info in lst.lst:
            <tr>
                <td><a href="$config.ADMIN_DIR/spider/hotel/edit/$info.id">$info.name</a></td>
                <td>$info.url_regex</td>
                <td></td>
                <td></td>
            </tr>
        <tr>
            <td colspan="2">
                <!--
                <input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll('prefix', this.form, 'deleteids')" /><label for="chkall">全选</label>
                <input type="submit" class="btn" value="删除">
                -->
            </td>
            <td colspan="7" align="right"><div class="pages">$:pager</div></td>
        </tr>
    </table>
    </form>
$else:
    <table class="tb tb2">
        <tr>
            <th class="partition" colspan="10">未找到符合条件的配置信息</th>
        </tr>
    </table>

$:render.admin.footer()
